package com.ruoyi.rsikManage.MonitorPoint.service.impl;

import java.util.List;
import java.util.Map;

import com.ruoyi.rsikManage.MonitorPoint.domain.TMonitorPointRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.rsikManage.MonitorPoint.mapper.TMonitorOfflineStatisticsMapper;
import com.ruoyi.rsikManage.MonitorPoint.domain.TMonitorOfflineStatistics;
import com.ruoyi.rsikManage.MonitorPoint.service.ITMonitorOfflineStatisticsService;

/**
 * 通道离线记录Service业务层处理
 *
 * @author sxygsj
 * @date 2024-12-25
 */
@Service
public class TMonitorOfflineStatisticsServiceImpl implements ITMonitorOfflineStatisticsService
{
    @Autowired
    private TMonitorOfflineStatisticsMapper tMonitorOfflineStatisticsMapper;

    /**
     * 查询通道离线记录
     *
     * @param id 通道离线记录主键
     * @return 通道离线记录
     */
    @Override
    public TMonitorOfflineStatistics selectTMonitorOfflineStatisticsById(Long id)
    {
        return tMonitorOfflineStatisticsMapper.selectTMonitorOfflineStatisticsById(id);
    }

    /**
     * 查询通道离线记录列表
     *
     * @param tMonitorOfflineStatistics 通道离线记录
     * @return 通道离线记录
     */
    @Override
    public List<TMonitorOfflineStatistics> selectTMonitorOfflineStatisticsList(TMonitorPointRequest tMonitorPointRequest)
    {
        return tMonitorOfflineStatisticsMapper.selectTMonitorOfflineStatisticsList(tMonitorPointRequest);
    }

    /**
     * 查询通道离线记录列表
     *
     * @param tMonitorOfflineStatistics 通道离线记录
     * @return 通道离线记录
     */
    @Override
    public List<Map<String,Object>> selectTMonitorOfflineStatisticsHour(TMonitorPointRequest tMonitorPointRequest )
    {
        return tMonitorOfflineStatisticsMapper.selectTMonitorOfflineStatisticsHour(tMonitorPointRequest);
    }
    /**
     * 查询通道离线记录列表
     *
     * @param tMonitorOfflineStatistics 通道离线记录
     * @return 通道离线记录
     */
    @Override
    public List<Map<String,Object>> selectTMonitorOfflineStatisticsMonth(TMonitorPointRequest tMonitorPointRequest )
    {
        return tMonitorOfflineStatisticsMapper.selectTMonitorOfflineStatisticsMonth(tMonitorPointRequest);
    }

    /**
     * 查询通道离线记录列表
     *
     * @param tMonitorOfflineStatistics 通道离线记录
     * @return 通道离线记录
     */
    @Override
    public List<Map<String,Object>> selectTMonitorOfflineStatisticsYear( TMonitorPointRequest tMonitorPointRequest)
    {
        return tMonitorOfflineStatisticsMapper.selectTMonitorOfflineStatisticsYear(tMonitorPointRequest);
    }
    /**
     * 新增通道离线记录
     *
     * @param tMonitorOfflineStatistics 通道离线记录
     * @return 结果
     */
    @Override
    public int insertTMonitorOfflineStatistics(TMonitorOfflineStatistics tMonitorOfflineStatistics)
    {
        return tMonitorOfflineStatisticsMapper.insertTMonitorOfflineStatistics(tMonitorOfflineStatistics);
    }

    /**
     * 修改通道离线记录
     *
     * @param tMonitorOfflineStatistics 通道离线记录
     * @return 结果
     */
    @Override
    public int updateTMonitorOfflineStatistics(TMonitorOfflineStatistics tMonitorOfflineStatistics)
    {
        return tMonitorOfflineStatisticsMapper.updateTMonitorOfflineStatistics(tMonitorOfflineStatistics);
    }

    /**
     * 批量删除通道离线记录
     *
     * @param ids 需要删除的通道离线记录主键
     * @return 结果
     */
    @Override
    public int deleteTMonitorOfflineStatisticsByIds(Long[] ids)
    {
        return tMonitorOfflineStatisticsMapper.deleteTMonitorOfflineStatisticsByIds(ids);
    }

    /**
     * 删除通道离线记录信息
     *
     * @param id 通道离线记录主键
     * @return 结果
     */
    @Override
    public int deleteTMonitorOfflineStatisticsById(Long id)
    {
        return tMonitorOfflineStatisticsMapper.deleteTMonitorOfflineStatisticsById(id);
    }
}
